home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / t_unix / j109lxa4.tar / version.c < prev    next >
C/C++ Source or Header  |  1994-06-04  |  8KB  |  417 lines

  1. /* Version control information for "info" command display */
  2. /* Definition for processor type added */
  3. /* Cleanup of information display - K2MF 4/93 */
  4.  
  5. #include <string.h> 
  6. #include "config.h"
  7. #include "global.h"
  8. #include "mbuf.h"
  9. #include "socket.h"
  10. #include "version.h"
  11. #include "commands.h"
  12.  
  13. /* NOTE - the following string must be large enough to hold data below */
  14.  
  15. char Version[30];
  16. char shortversion[] = "JNOS1.09a4";
  17.  
  18. #if (defined(MAILBOX) || defined(MBFWD))
  19. char MboxId[] = "[JNOS-1.09-HM$]\n";
  20. #endif /* MAILBOX || MBFWD */
  21.  
  22. char Version2[] = "by Johan Reinalda, WG7J/PA3DIS\n";
  23. extern int Numrows,Numcols,Nusock;
  24.  
  25. /* ifdef versions defined in makefile */
  26. void setversion(void)
  27. {
  28.     strcpy(Version,"911229 (WG7J v1.09");
  29.  
  30. #if defined UNIX
  31.     strcat(Version,"a4-Unix)");
  32. #elif defined CPU286
  33.     strcat(Version,"-80186)");
  34. #elif defined CPU386
  35.     strcat(Version,"-80386)");
  36. #else
  37.     strcat(Version,"-8088)");
  38. #endif
  39. }
  40.  
  41. #ifdef ALLCMD
  42. int
  43. #ifdef PROTOTYPES
  44. doinfo(int argc,char **argv,void *p)
  45. #else
  46. doinfo(argc,argv,p)
  47. int argc;
  48. char *argv[];
  49. void *p;
  50. #endif
  51. {
  52.     tprintf("NOS %s, compiled %s %s containing:\n\n" ,Version,__DATE__,__TIME__);
  53.  
  54.     tputs("TCP Servers:");
  55.  
  56. #ifndef SERVERS
  57.     tputs("  None !\n");
  58. #endif /* ! SERVERS */
  59.  
  60. #ifdef SERVERS
  61.     tputs("  FINGER  SMTP  FTP");
  62.  
  63. #ifdef MAILBOX
  64.     tputs("  TELNET");
  65. #endif /* MAILBOX */
  66.  
  67. #ifdef ALLSERV
  68.     tputs("  TTYLINK  DISCARD  ECHO");
  69. #endif /* ALLSERV */
  70.  
  71.     tputs("\n");
  72.  
  73. #if (defined(CALLSERVER) || defined(CONVERS) || defined(NNTPS) || defined(POP2SERVER) || defined(POP3SERVER) || defined(RDATE))
  74.     tputs("            ");
  75.  
  76. #ifdef CALLSERVER
  77.     tputs("  CALLBOOK (CD-ROM)");
  78. #endif /* CALLSERVER */
  79.  
  80. #ifdef CONVERS
  81.     tputs("  CONVERS");
  82. #endif /* CONVERS */
  83.  
  84. #ifdef NNTPS
  85.     tputs("  NNTP");
  86. #endif /* NNTPS */
  87.  
  88. #ifdef POP2SERVER
  89.     tputs("  POP2");
  90. #endif /* POP2SERVER */
  91.  
  92. #ifdef POP3SERVER
  93.     tputs("  POP3");
  94. #endif /* POP3SERVER */
  95.  
  96. #ifdef RDATE
  97.     tputs ("  TIME");
  98. #endif /* RDATE */
  99.  
  100.     tputs ("\n");
  101. #endif /* CALLSERVER || CONVERS || NNTPS || POP2SERVER || POP3SERVER || RDATE */
  102.  
  103. #endif /* SERVERS */
  104.  
  105.     tputs("TCP Clients:  FINGER  SMTP");
  106.  
  107. #ifdef ALLSESSIONS
  108.     tputs("  FTP  TELNET");
  109. #endif /* ALLSESSIONS */
  110.  
  111. #ifdef ALLSERV
  112.     tputs("  TTYLINK");
  113. #endif /* ALLSERV */
  114.  
  115.     tputs ("\n");
  116.  
  117. #if (defined(CALLCLI) || defined(CONVERS) || defined(NNTP) || defined(NNTPS) || defined(POP2CLIENT) || defined(POP3CLIENT) || defined(RLOGINCLI) || defined(RDATE))
  118.     tputs ("            ");
  119.  
  120. #ifdef CALLCLI
  121.     tputs("  CALLBOOK (CD-ROM)");
  122. #endif /* CALLCLI */
  123.  
  124. #ifdef CONVERS
  125.     tputs("  CONVERS");
  126. #endif /* CONVERS */
  127.  
  128. #if (defined(NNTP) || defined(NNTPS))
  129.     tputs("  NNTP");
  130. #endif /* NNTP || NNTPS */
  131.  
  132. #ifdef POP2CLIENT
  133.     tputs("  POP2");
  134. #endif /* POP2CLIENT */
  135.  
  136. #ifdef POP3CLIENT
  137.     tputs("  POP3");
  138. #endif /* POP3CLIENT */
  139.  
  140. #ifdef RLOGINCLI
  141.     tputs("  RLOGIN");
  142. #endif /* RLOGINCLI */
  143.  
  144. #ifdef RDATE
  145.     tputs ("  TIME");
  146. #endif /* RDATE */
  147.  
  148.     tputs ("\n");
  149. #endif /* CALLCLI || CONVERS || NNTP || NNTPS || POP2CLIENT || POP3CLIENT || RLOGINCLI || RDATE */
  150.  
  151. #ifdef LZW
  152.     tputs("    with LZW compression for TCP sockets\n");
  153. #endif /* LZW */
  154.  
  155. #if (defined(TCPACCESS) || defined(IPACCESS))
  156.     tputs("    with ");
  157.  
  158. #ifdef TCPACCESS
  159.     tputs("TCP");
  160. #endif /* TCPACCESS */
  161.  
  162. #if (defined(TCPACCESS) && defined(IPACCESS))
  163.     tputs("/");
  164. #endif /* TCPACCESS && IPACCESS */
  165.  
  166. #ifdef IPACCESS
  167.     tputs("IP");
  168. #endif /* IPACCESS */
  169.  
  170.     tputs(" access controls\n");
  171. #endif /* TCPACCESS || IPACCESS */
  172.  
  173.     tputs("UDP Servers:");
  174.  
  175. #if (!defined(DSERVER) && !defined(SERVERS))
  176.     tputs("  None !");
  177. #endif /* ! DSERVER && ! SERVERS */
  178.  
  179. #ifdef DSERVER
  180.     tputs("  DOMAIN NAMESERVER");
  181. #endif /* DSERVER */
  182.  
  183. #ifdef SERVERS
  184.     tputs("  REMOTE");
  185. #endif /* SERVERS */
  186.  
  187.     tputs("\n");
  188.  
  189. #ifdef MAILBOX
  190.  
  191. #ifdef TIPMAIL
  192.     tputs("TIP ");
  193. #endif /* TIPMAIL */
  194.  
  195.     tputs("Mailbox Server");
  196.  
  197. #ifdef XMODEM
  198.     tputs(" with Xmodem file transfer");
  199. #endif /* XMODEM */
  200.  
  201.     tputs("\n");
  202.  
  203. #ifdef MAILCMDS
  204.     tputs("Full Service BBS");
  205.  
  206. #if (defined(EXPIRY) || defined(MAILFOR) || defined(MBFWD) || defined(RLINE))
  207.     tputs(" with:");
  208. #endif /* EXPIRY || MAILFOR || MBFWD || RLINE */
  209.  
  210. #ifdef EXPIRY
  211.     tputs("\n     Message and BID expiry");
  212. #endif /* EXPIRY */
  213.  
  214. #ifdef MAILFOR
  215.     tputs("\n     'Mail For' beaconing");
  216. #endif /* MAILFOR */
  217.  
  218. #ifdef MBFWD
  219.     tputs("\n     AX.25 mail forwarding");
  220. #endif /* MBFWD */
  221.  
  222. #ifdef RLINE
  223.     tputs("\n     BBS 'R:-line' compatibility");
  224. #endif /* RLINE */
  225.  
  226.     tputs("\n");
  227. #endif /* MAILCMDS */
  228.  
  229. #endif /* MAILBOX */
  230.  
  231. #if (defined(CALLBOOK) || defined(AXIP) || defined(ENCAP))
  232.     tputs("Internet Services:");
  233.  
  234. #ifdef CALLBOOK
  235.     tputs("  BBS Callbook Client");
  236. #endif /* CALLBOOK */
  237.  
  238. #ifdef AXIP
  239.     tputs("  AX.25 Digipeating");
  240. #endif /* AXIP */
  241.  
  242. #ifdef ENCAP
  243.     tputs("  IP Encapsulation");
  244. #endif /* ENCAP */
  245.  
  246.     tputs("\n");
  247. #endif /* CALLBOOK || AXIP || ENCAP */
  248.  
  249. #ifdef HOPCHECK
  250.     tputs("Hopcheck IP path tracing\n");
  251. #endif /* HOPCHECK */
  252.  
  253. #ifdef RIP
  254.     tputs("RIP Routing Protocol\n");
  255. #endif /* RIP */
  256.  
  257. #ifdef RSPF
  258.     tputs("Radio Shortest Path First Protocol (RSPF)\n");
  259. #endif /* RSPF */
  260.  
  261. #ifdef RARP
  262.     tputs("Reverse Address Resolution Protocol (RARP)\n");
  263. #endif /* RARP */
  264.  
  265. #ifdef UNIX
  266.     tprintf("%d sockets\n",Nusock);
  267. #else
  268.     tprintf("%d sockets, %d interrupt buffers of %d bytes\n",Nusock,Nibufs,Ibufsize);
  269. #endif
  270.  
  271. #ifdef ASY
  272. #ifdef UNIX
  273.     tputs("Generic termios interface driver\n");
  274. #else
  275.     tputs("Generic async (8250/16450/16550) interface driver\n");
  276. #endif
  277.  
  278. #if (defined(KISS) || defined(AX25) || defined(NRS))
  279.     tputs("Async interface drivers:");
  280.  
  281. #ifdef KISS
  282.     tputs("  KISS TNC");
  283. #endif /* KISS */
  284.  
  285. #ifdef AX25
  286.     tputs("  AX.25");
  287. #endif /* AX25 */
  288.  
  289. #ifdef NRS
  290.     tputs("  NET/ROM TNC");
  291. #endif /* NRS */
  292.  
  293.     tputs("\n");
  294. #endif /* KISS || AX25 || NRS */
  295.  
  296. #endif /* ASY */
  297.  
  298. #ifdef NETROM
  299.     tputs("NET/ROM network interface\n");
  300. #endif /* NETROM */
  301.  
  302. #if (defined(PPP) || defined(SLIP))
  303.     tputs("Async IP drivers:");
  304.  
  305. #ifdef PPP
  306.     tputs("  Point-to-Point (PPP)");
  307. #endif /* PPP */
  308.  
  309. #ifdef SLIP
  310.     tputs("  Serial Line (SLIP)");
  311. #endif /* SLIP */
  312.  
  313.     tputs("\n");
  314. #ifdef DIALER
  315.     tputs("      with dialer code for SLIP\n");
  316. #endif /* DIALER */
  317.  
  318. #ifdef VJCOMPRESS
  319.     tputs("      with Van Jacobson compression for PPP/SLIP\n");
  320. #endif /* VJCOMPRESS */
  321.  
  322. #endif /* PPP || SLIP */
  323.  
  324. #ifdef PACKET
  325.     tputs("FTP Software's PACKET driver interface\n");
  326. #endif /* PACKET */
  327.  
  328. #ifdef APPLETALK
  329.     tputs("Appletalk interface for MacIntosh\n");
  330. #endif /* APPLETALK */
  331.  
  332. #ifdef ARCNET
  333.     tputs("ARCnet via PACKET driver\n");
  334. #endif /* ARCNET */
  335.  
  336. #ifdef DRSI
  337.     tputs("DRSI PCPA low-speed driver\n");
  338. #endif /* DRSI */
  339.  
  340. #ifdef EAGLE
  341.     tputs("Eagle card 8530 driver\n");
  342. #endif /* EAGLE */
  343.  
  344. #ifdef ETHER
  345.     tputs("Generic ethernet driver\n");
  346. #endif /* ETHER */
  347.  
  348. #ifdef HAPN
  349.     tputs("Hamilton Area Packet Network driver\n");
  350. #endif /* HAPN */
  351.  
  352. #ifdef HS
  353.     tputs("High speed (56 kbps) modem driver\n");
  354. #endif /* HS */
  355.  
  356. #ifdef PACKETWIN
  357.     tputs("Gracilis PackeTwin driver\n");
  358. #endif /* PACKETWIN */
  359.  
  360. #ifdef PC_EC
  361.     tputs("3-Com 3C501 Ethernet controller driver\n");
  362. #endif /* PC_EC */
  363.  
  364. #ifdef PC100
  365.     tputs("PAC-COM PC-100 driver\n");
  366. #endif /* PC100 */
  367.  
  368. #ifdef PI
  369.     tputs("PI SCC card with DMA driver (VE3IFB)\n");
  370. #endif /* PI */
  371.  
  372. #ifdef SCC
  373.     tputs("Generic SCC (8530) driver (PE1CHL)\n");
  374. #endif /* SCC */
  375.  
  376. #ifdef SLFP
  377.     tputs("SLFP via PACKET driver\n");
  378. #endif /* SLFP */
  379.     
  380. #ifdef TRACE
  381.     tputs("Hardware interface packet tracing code\n");
  382. #endif /* TRACE */
  383.  
  384. #ifdef STKTRACE
  385.     tputs("Stack tracing code\n");
  386. #endif /* STKTRACE */
  387.  
  388. #ifdef MULTITASK
  389. /*      tputs("The Russell Nelson modsets\n"); */
  390.     tputs("Multitasking capability when shelling out to MS-DOS\n");
  391. #endif /* MULTITASK */
  392.  
  393. #ifdef XSPAWN
  394.     tputs("EMS/Disk swapping when shelling out to MS-DOS\n");
  395. #endif /* XSPAWN */
  396.  
  397. #ifdef UNIX
  398.     tputs("Linux/Unix/POSIX modifications by Brandon S. Allbery\n");
  399. #endif
  400.  
  401. #ifdef MONITOR
  402.     tputs("User port monitor trace mode\n");
  403. #endif
  404.  
  405. #ifdef TTYCALL
  406.     tputs("AX.25 ttylink mode\n");
  407. #endif
  408.  
  409. #ifdef AXBCSTR
  410.     tputs("AX.25 broadcast strings\n");
  411. #endif
  412.  
  413.     return 0;
  414. }
  415.  
  416. #endif /* ALLCMD */
  417.